package com.yimi.policyservice.service;


import com.yimi.policyservice.dto.policyaddr.Policy4Create;
import com.yimi.policyservice.dto.policyaddr.Policy4GetPut;
import com.yimi.policyservice.entity.base.policy.PolicyAddr;
import com.yimi.policyservice.entity.base.system.SysUser;

import java.util.List;

public interface PolicyAddrService {

    /**
     * 创建参保地
     * @return
     */
    PolicyAddr  create(Policy4Create bean, SysUser user) ;

    void delete(String id);

    Policy4GetPut getOne(String id);

    void update(SysUser loginUser, Policy4GetPut bean);

    List<PolicyAddr> findAll();

    List<PolicyAddr>findAllByPermission(String userId,List<Integer> permissionType);

    List<PolicyAddr> findByType(int type);

    boolean checkUse(List<String> ids);
}
